From 101dad2c150e7416c35f9ccf34dfbc6e3a6ccd32 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 10 Jul 2019 00:04:55 +0200 Subject: [PATCH] Fix timezone east of GMT in Calv * lisp/calc/calc-forms.el (math-calendar-tzinfo): Make timezone calculation work east of Greenwich. Fix proposed by David O'Shea (bug#34075). --- lisp/calc/calc-forms.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calc/calc-forms.el b/lisp/calc/calc-forms.el index fce82d2eaac..8faeb0a9dec 100644 --- a/lisp/calc/calc-forms.el +++ b/lisp/calc/calc-forms.el @@ -1491,7 +1491,7 @@ second, the number of seconds offset for daylight savings." (calendar-current-time-zone) calendar-current-time-zone-cache))) (setq math-calendar-tzinfo - (list (* 60 (abs (nth 0 tzinfo))) + (list (* 60 (- (nth 0 tzinfo))) (* 60 (nth 1 tzinfo))))))) (defun calcFunc-tzone (&optional zone date) -- 2.30.2